# Config file class
import logging


class Config(object):
	"""Base config class."""
	
	SECRET_KEY = '123456'
	
	SQLALCHEMY_TRACK_MODIFICATIONS = True
	
	logging.basicConfig(filename='blog\logs\\run.log',
						level=logging.DEBUG,
						format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s')
	

class ProdConfig(Config):
	"""Production config class."""
	
	pass


class DevConfig(Config):
	"""Development config class."""
	
	#: Open the DEBUG
	DEBUG = True
	
	#: Init Mysql URI
	SQLALCHEMY_DATABASE_URI = "mysql+pymysql://bloguser:1234567@127.0.0.1:3306/Flask_blog"
	
	#: celery bind to rabbitM
	CELERY_RESULT_BACKEND = "amqp://guest@localhost:5672//"
	CELERY_BROKER_URL = "amqp://guest@localhost:5672//"
